package com.serg.mock.mochito.xpath;

import java.io.InputStream;
import java.net.Socket;
import java.util.Scanner;

public class SocketTest
{
    public static void main(String[] args) throws Exception
    {
        Socket socket = new Socket("hortsmann.com", 13);
        InputStream stream = socket.getInputStream();
        Scanner scanner = new Scanner(stream);
        while (scanner.hasNextLine())
        {
            System.out.println(scanner.nextLine());
        }
        stream.close();
    }
}
